<?php
$conn = mysqli_connect("localhost", "root", "74642486","db_user",3306); //准备SQL语句,查询用户名

$username = $_POST['username'];
$password = $_POST['password'];
$sex = $_POST['sex'];
$qq = $_POST['qq'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$address = $_POST['address'];

mysqli_query($conn,"UPDATE tb_user SET phone='$phone',password='$password',sex='$sex',qq='$qq',email='$email',address='$address' WHERE username='$username'");
header("Location:super_loginsucc.php?err=3");